package com.example.client;

import com.example.pojo.Stock;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "stock-service",path = "stock")
public interface StockClient 
{
	@GetMapping("getPrice")
	public Integer getPrice(@RequestParam("id") Integer id);
	@GetMapping("reduce")
	public void reduce(@RequestParam("id") Integer id);
}
